import { Profile } from 'mixly';

const pins = {};

pins.arduino_standard = {
    description: "standard",
    digital: [...Profile.generate(['0-13']), ...Profile.generate(['0-5'], 'A', 'A')],
    analog: Profile.generate(['0-7'], 'A', 'A'),
    pwm: Profile.generate(['3', '5', '6', '9-11']),
    interrupt: Profile.generate(['2-3']),
    SDA: [["A4", "A4"]],
    SCL: [["A5", "A5"]],
    MOSI: [["11", "11"]],
    MISO: [["12", "12"]],
    SCK: [["13", "13"]],
    serial_select: [
        ["Serial", "Serial"],
        ["SoftwareSerial", "mySerial"],
        ["SoftwareSerial1", "mySerial1"],
        ["SoftwareSerial2", "mySerial2"],
        ["SoftwareSerial3", "mySerial3"]
    ],
    serial: 9600
};

pins['STC89C52RC'] = pins.arduino_standard;
pins['STC12C5A60S2'] = pins.arduino_standard;

export default pins;